package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class InverseDistributionFunction implements OrderedSetFunction {

    private int beginIndex;
    private int endIndex;
    private InverseDistributionFunctionType inverseDistributionFunctionType;
    private NumericValueExpression inverseDistributionFunctionArgument;
    private WithinGroupSpecification withinGroupSpecification;

    public InverseDistributionFunction(InverseDistributionFunctionType inverseDistributionFunctionType,
                                       NumericValueExpression inverseDistributionFunctionArgument,
                                       WithinGroupSpecification withinGroupSpecification) {
        this.beginIndex = inverseDistributionFunctionType.getBeginIndex();
        this.endIndex = withinGroupSpecification.getEndIndex();
        this.inverseDistributionFunctionType = inverseDistributionFunctionType;
        this.inverseDistributionFunctionArgument = inverseDistributionFunctionArgument;
        this.withinGroupSpecification = withinGroupSpecification;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public InverseDistributionFunctionType getInverseDistributionFunctionType() {
        return inverseDistributionFunctionType;
    }

    public NumericValueExpression getInverseDistributionFunctionArgument() {
        return inverseDistributionFunctionArgument;
    }

    public WithinGroupSpecification getWithinGroupSpecification() {
        return withinGroupSpecification;
    }

}
